<!DOCTYPE html>
<html>
<head>
	<title>JSONP 实例</title>
	<meta charset="utf8">
	<script src="./jquery.min.js"></script>	
</head>
<body>
<div id="divCustomers">
   <p id="say"></p>
   <button id="btn">申请JSON</button>
</div>
<!--
<script>
$("#btn").click(function(){

  $.getJSON("http://alovezmiku.oschina.mopaas.com/WebLearning/Json/jsonback.php?jsoncallback=?", function(data) {
	 	  html = data.word;
	    $('#say').html(html); 
   });
});
</script>
-->
<script type="text/javascript">
        function callbackFunction(result)
        {
            var html = '';
            html += result.word;
            document.getElementById('divCustomers').innerHTML = html;
        }
</script>

<script type="text/javascript" src="http://alovezmiku.oschina.mopaas.com/WebLearning/Json/jsonback.php?jsoncallback=callbackFunction"></script>
</body>
</html> 